package com.example.gittest.git.demo4;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/test")
    public String getDemo(){
        return "get";
    }

    @PutMapping("/put")
    public String putDemo(){
        return "put";
    }
    @DeleteMapping("/delete")
    public String deleteDemo(){
        return "delete";
    }
}
